package codemsg

import (
	"github.com/gogf/gf/v2/errors/gcode"
	"github.com/gogf/gf/v2/errors/gerror"
)

var InternalServerErrorCode = gcode.New(500, "internal_server_error", "")
var InternalServerErr = gerror.NewCode(InternalServerErrorCode)

var EmailAlreadyExistsCode = gcode.New(10000, "email_already_exists", "")
var EmailAlreadyExistsErr = gerror.NewCode(EmailAlreadyExistsCode)

var DuplicateEntryCode = gcode.New(10001, "duplicate_entry", "")
var DuplicateEntryErr = gerror.NewCode(DuplicateEntryCode)

var UserIdEmptyCode = gcode.New(10002, "user_id_empty", "")
var UserIdEmptyErr = gerror.NewCode(UserIdEmptyCode)

var UserEmailEmptyCode = gcode.New(10003, "user_email_empty", "")
var UserEmailEmptyErr = gerror.NewCode(UserEmailEmptyCode)

var UserPasswordEmptyCode = gcode.New(10004, "user_password_empty", "")
var UserPasswordEmptyErr = gerror.NewCode(UserPasswordEmptyCode)

var UserNameEmptyCode = gcode.New(10005, "user_name_empty", "")
var UserNameEmptyErr = gerror.NewCode(UserNameEmptyCode)

var UserRoleInvalidCode = gcode.New(10006, "user_role_invalid", "")
var UserRoleInvalidErr = gerror.NewCode(UserRoleInvalidCode)

var UserStatusInvalidCode = gcode.New(10007, "user_status_invalid", "")
var UserStatusInvalidErr = gerror.NewCode(UserStatusInvalidCode)

var UserNotFoundCode = gcode.New(10008, "user_not_found", "")
var UserNotFoundErr = gerror.NewCode(UserNotFoundCode)

var UserNotExistsCode = gcode.New(10009, "user_not_exists", "")
var UserNotExistsErr = gerror.NewCode(UserNotExistsCode)

var InvalidJwtCode = gcode.New(10010, "invalid_jwt", "")
var InvalidJwtErr = gerror.NewCode(InvalidJwtCode)

var PasswordIncorrectCode = gcode.New(10011, "password_incorrect", "")
var PasswordIncorrectErr = gerror.NewCode(PasswordIncorrectCode)

var UserBannedCode = gcode.New(10012, "user_banned", "")
var UserBannedErr = gerror.NewCode(UserBannedCode)

var UserDeletedCode = gcode.New(10013, "user_deleted", "")
var UserDeletedErr = gerror.NewCode(UserDeletedCode)
